package routers

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

func helloHandler(c *gin.Context){
	c.JSON(http.StatusOK,gin.H{
		"message" : "hello baidu.com",
	})
}

func SetupRouter() *gin.Engine{
	r:= gin.Default()
	r.GET("/togger",helloHandler)
	return r
}